<template>
    <div class="base_orgin" :style="{'--ThemeColor':this.$util.storage.get('color')}">
      <Banner></Banner>
      <mainContent :catname="title">
        <div slot="menu_list">
          <dl>
            <dt :style="{background: '' + this.$util.storage.get('color') + ''}" class="menu_dt"><span>{{title}}</span></dt>
          </dl>
        </div>
       <div class="inner_content" slot="inner_content">
         <div class="inner_boxs">
          <NoData v-show="isEmpty"></NoData>
          <div v-show="!isEmpty" class="content">
              <div class="frame_box">
                 <div v-for="(item,index) in list">
                   <div class="header_img">
                    <img :src="item.img"/>
                   </div>
                   <div class="msg">
                     <div>姓名：<span>{{item.name}}</span></div>
                     <div>手机：<span>{{item.mobile}}</span></div>
                     <div>职务：<span>{{item.post}}</span></div>
                   </div>
                 </div>
              </div>
          </div>
         </div>
       </div>
      </mainContent>
      <footerBar></footerBar>
      <!--左侧漂浮菜单-->
      <MainMenu></MainMenu>
      <!--左侧漂浮菜单-->
    </div>
</template>

<script>
    import Banner from '@/components/bannder/Banner';
    import MainMenu from '@/components/mainmenu/MainMenu';
    import mainContent from '@/components/content/mainContent';
    import footerBar from '@/components/content/footerBar';
    import NoData from '@/components/nodata/NoData'
    export default {
        name: "BaseOrgin",
        data(){
          return{
            title:this.$route.query.name,
            list:[],//组织架构列表
            isEmpty:false
          }
        },
        components: {
          Banner,
          MainMenu,
          mainContent,
          footerBar,
          NoData,
        },
        created(){
          this.getList();
        },
        mounted(){

        },
        methods:{
          getList(){
              let that = this;
              let params ={
                vollege_id:that.$util.vollege_id,
                page:1,
                limit:100000,
              };
              that.$http.get("/api/PcData/get_organ?"+that.$route.query.article_param,params,r=>{
                console.log('获取班子成员数据为：',r.data);
                r.data.length==0?that.isEmpty=true:that.isEmpty=false;
                that.list=r.data;
              });
          },//获取组织架构详情列表
        }
    }
</script>

<style scoped>
  .base_orgin{
    box-sizing: border-box;
  }
  .inner_content{
    box-sizing: border-box;
  }
  .inner_boxs{
    padding-top: 50px;
  }
  .content{
    width: 100%;
    height: 650px;
    box-sizing: border-box;
    padding: 0px 50px;
    overflow: scroll;
  }
  .frame_box{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-column-gap: 50px;
    grid-row-gap: 50px;
  }
  .frame_box > div{
    height: 300px;
    display: flex;
    border: 3px solid var(--ThemeColor);
    align-items: center;
    justify-content: space-between;
  }
  .header_img{
    width: 209px;
    height: 284px;
    overflow: hidden;
  }
  .header_img img{
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  .msg{
    width: 410px;
    font-size: 24px;
    color: black;
    line-height: 1.5;
    font-weight: bold;
    height: 284px;
    box-sizing: border-box;
    padding: 3px 10px;
  }
  .msg > div{
    padding-bottom: 30px;
  }
  .msg > div > span{
    color: #696969;
  }


</style>
